<template>
  <div class="my-message">

    <div class="padding" v-if="type === 2">
      {{type}}
    </div>
    <div class="message-content">
      <div class="message-content-user">

      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Message",
  props: {
    message: {
      type: Object,
      default: null
    },
    type: {
      type: Number,
      default: null
    }
  }
}
</script>

<style scoped lang="scss">
.my-message {
  height: 150px;
  text-align: left;
  vertical-align: text-top;
}
.padding{
  display: inline-block;
  width: 30px;
}
.message-content{
  position: relative;
  height: 100%;
  border: 1px solid red;
  display: inline-block;

  &-user{
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    top: 0;
    left: 0;
    background-color: #0f8b8d;
  }
}
</style>